import { useCookies } from "@vueuse/integrations/useCookies";

const TOKEN_KEY = "admin-token"
const cookies = useCookies()

//获取token
export function getToken() {
    return cookies.get(TOKEN_KEY)
}
//设置token
export function setToken(token) {
    return cookies.set(TOKEN_KEY,token)
}
//删除tokenexport 
function removeToken() {
    return cookies.remove(TOKEN_KEY)
}